package router

import (
	"github.com/gin-gonic/gin"
	"server/handler"
)

func Router(engine *gin.Engine) {
	engine.GET("/", handler.Ping)
	engine.GET("/GetAllJson", handler.GetAllJson)
	engine.GET("/GetAllData", handler.GetAllData)
	engine.GET("/GetAllDataWebSocket", handler.GetAllDataWebSocket)
	engine.GET("/WebSocketTest", handler.WebSocketTest)
	engine.GET("/Login", handler.Login)
	engine.GET("/Logout", handler.Logout)

	engine.POST("/Move", handler.Move)
	engine.POST("/MoveY", handler.MoveY)
	engine.POST("/MoveX", handler.MoveX)
	engine.GET("/MoveSocket", handler.MoveSocket)
	engine.GET("/ResetGame", handler.ResetGame)
}
